package com.msw.jcwapi.wb.wbdwq.service.impl;

import com.msw.jcwapi.wb.wbdwq.entity.Wbdwq;
import com.msw.jcwapi.wb.wbdwq.mapper.WbdwqMapper;
import com.msw.jcwapi.wb.wbdwq.service.IWbdwqService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.msw.jcwapi.wb.wbdz.entity.Wbdz;
import com.msw.jcwapi.wb.wbjyz.entity.Wbjyz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2025-04-01
 */
@Service
public class WbdwqServiceImpl extends ServiceImpl<WbdwqMapper, Wbdwq> implements IWbdwqService {

    @Autowired
    private WbdwqMapper wbdwqMapper;

    @Override
    public List<Wbdwq> listByProId(int id) {
        return wbdwqMapper.listByProId(id);
    }

    //通过wbid删除该dwq的信息
    @Override
    public boolean deleteById(int id) {
        return wbdwqMapper.deleteById(id);
    }

    //通过did查询该定位器的全部信息
    @Override
    public Wbdwq listByWbdwqId(int id) {
        return wbdwqMapper.listByWbdwqId(id);
    }

    //编辑腕臂定位器(通过id编辑)
    @Override
    public boolean update(Wbdwq wbdwq) {
        return wbdwqMapper.Edit(wbdwq);
    }

    //添加腕臂定位器、
    @Override
    public boolean add(Wbdwq wbdwq) {
        return wbdwqMapper.add(wbdwq);
    }

}
